/*
 * XML Type:  PayeeTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PayeeTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PayeeTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PayeeTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.PayeeTransactionResponse
{
    
    public PayeeTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAYEERS$0 = 
        new javax.xml.namespace.QName("", "PAYEERS");
    private static final javax.xml.namespace.QName PAYEEMODRS$2 = 
        new javax.xml.namespace.QName("", "PAYEEMODRS");
    private static final javax.xml.namespace.QName PAYEEDELRS$4 = 
        new javax.xml.namespace.QName("", "PAYEEDELRS");
    
    
    /**
     * Gets the "PAYEERS" element
     */
    public net.ofx.types.x2003.x04.PayeeResponse getPAYEERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeResponse)get_store().find_element_user(PAYEERS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEERS" element
     */
    public boolean isSetPAYEERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEERS$0) != 0;
        }
    }
    
    /**
     * Sets the "PAYEERS" element
     */
    public void setPAYEERS(net.ofx.types.x2003.x04.PayeeResponse payeers)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeResponse)get_store().find_element_user(PAYEERS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeResponse)get_store().add_element_user(PAYEERS$0);
            }
            target.set(payeers);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEERS" element
     */
    public net.ofx.types.x2003.x04.PayeeResponse addNewPAYEERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeResponse)get_store().add_element_user(PAYEERS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEERS" element
     */
    public void unsetPAYEERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEERS$0, 0);
        }
    }
    
    /**
     * Gets the "PAYEEMODRS" element
     */
    public net.ofx.types.x2003.x04.PayeeModResponse getPAYEEMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeModResponse)get_store().find_element_user(PAYEEMODRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEEMODRS" element
     */
    public boolean isSetPAYEEMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEMODRS$2) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEMODRS" element
     */
    public void setPAYEEMODRS(net.ofx.types.x2003.x04.PayeeModResponse payeemodrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeModResponse)get_store().find_element_user(PAYEEMODRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeModResponse)get_store().add_element_user(PAYEEMODRS$2);
            }
            target.set(payeemodrs);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEEMODRS" element
     */
    public net.ofx.types.x2003.x04.PayeeModResponse addNewPAYEEMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeModResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeModResponse)get_store().add_element_user(PAYEEMODRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEEMODRS" element
     */
    public void unsetPAYEEMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEMODRS$2, 0);
        }
    }
    
    /**
     * Gets the "PAYEEDELRS" element
     */
    public net.ofx.types.x2003.x04.PayeeDeleteResponse getPAYEEDELRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteResponse)get_store().find_element_user(PAYEEDELRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PAYEEDELRS" element
     */
    public boolean isSetPAYEEDELRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PAYEEDELRS$4) != 0;
        }
    }
    
    /**
     * Sets the "PAYEEDELRS" element
     */
    public void setPAYEEDELRS(net.ofx.types.x2003.x04.PayeeDeleteResponse payeedelrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteResponse)get_store().find_element_user(PAYEEDELRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeDeleteResponse)get_store().add_element_user(PAYEEDELRS$4);
            }
            target.set(payeedelrs);
        }
    }
    
    /**
     * Appends and returns a new empty "PAYEEDELRS" element
     */
    public net.ofx.types.x2003.x04.PayeeDeleteResponse addNewPAYEEDELRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeDeleteResponse target = null;
            target = (net.ofx.types.x2003.x04.PayeeDeleteResponse)get_store().add_element_user(PAYEEDELRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "PAYEEDELRS" element
     */
    public void unsetPAYEEDELRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PAYEEDELRS$4, 0);
        }
    }
}
